package it.edgeworks.dsession.api;

import javax.servlet.http.HttpServletRequest;

/**
 * This filter provides a single session. So each servlet container uses always the
 * same session for "every" client. This filter is useful for aving a common cache for
 * the web services.
 *
 * @author Daniele Galdi
 * @version $Revision: 66 $
 */
public class SingleSessionFilter extends MultiSessionFilter {

    private static String SINGLE_SESSION = "0-123-456-789";

    @Override
    protected String checkSession(HttpServletRequest httpRequest) {
        return SINGLE_SESSION;
    }

    @Override
    protected String generatePrefix() {
        return SINGLE_SESSION;        
    }
}
